const path = ['仓储管理', '调拨管理'];
const configArr = [{
		color: "brown",
		label: "全部调拨申请",
		value: undefined,
		count: 0
	},
	{
		color: "green",
		label: "待审批",
		value: 20,
		count: 0
	},
	{
		color: "yellow",
		label: "待调拨",
		value: 30,
		count: 0
	},
	{
		color: "orange",
		label: "调拨中",
		value: 40,
		count: 0
	},
	{
		color: "pink",
		label: "已完结",
		value: 50,
		count: 0
	},
	{
		color: "gray",
		label: "已作废",
		value: 60,
		count: 0
	},

]
//
const filterOption = {
	items: [{
			label: "关键字",
			type: "input",
			data: undefined,
			placeholder: "调拨单/条码/商品编码",
			value: undefined,
			key: "keyword"
		},
		{
			label: "调拨单类型",
			type: "dropdown",
			data: [],
			placeholder: "请选择",
			value: undefined,
			key: "type"
		},
		{
			label: "创建人",
			type: "dropdown",
			data: [{
					label: "1",
					value: "1"
				},
				{
					label: "2",
					value: "2"
				}
			],
			placeholder: "请选择",
			value: undefined,
			key: "createBy"
		},
		{
			label: "单据状态",
			type: "dropdown",
			data: [],
			placeholder: "请选择",
			value: undefined,
			key: "status"
		},
		{
			label: "发货仓库",
			type: "dropdown",
			data: [],
			placeholder: "请选择",
			value: undefined,
			key: "outWarehouseId"
		},
		{
			label: "收货仓库",
			type: "dropdown",
			data: [],
			placeholder: "请选择",
			value: undefined,
			key: "inWarehouseId"
		},
		{
			label: "创建时间",
			type: "datetimerange",
			data: undefined,
			placeholder: "请选择",
			value: undefined,
			key: "createTime"
		},
	],
	btnGroup: [{
			label: "查询",
			type: "search"
		},
		{
			label: "清除",
			type: "clear"
		}
	],
	close: true
};
//分页数据
const paginationObject = {
	currentPage: 1,
	pageSize: 1,
	pageTotal: 1,
	total: 1,
	num1: 1,
	num2: 1
}
const tableHeaderData = [{
		prop: 'remarkType',
		label: '调拨单类型',
		width: '120'
	},
	{
		prop: 'outWareLocation',
		label: '发货仓库',
		width: '160'
	},
	{
		prop: 'intWareLocation',
		label: '收货仓库',
		width: '160'
	},
	{
		prop: 'returnReason',
		label: '调拨原因',
		width: ''
	},
	{
		prop: 'createBy',
		label: '创建人',
		width: ''
	},
	{
		prop: 'createTime',
		label: '创建日期',
		width: '160'
	},
	{
		prop: 'checkBy',
		label: '审批人',
		width: ''
	},
	{
		prop: 'checkTime',
		label: '审批时间',
		width: '160'
	},
	{
		prop: 'showStatus',
		label: '状态',
		width: ''
	},
	{
		prop: 'remark',
		label: '备注',
		width: ''
	},
]
const tableData = []
//
let Model = {
	data() {
		return {
			Model: {
				path,
				configArr,
				filterOption,
				TableSelectData: [],
				tableData,
				page: {
					pageIndex: 1,
					pageSize: 10
				},
				tableHeaderData,
				paginationObject,
				editDialogObsolete: false,
				getTypeOptionData: [],
				getStoreOptionData: []
			}
		}
	}
}
export default Model;
